package org.goj.practice.service.impl;

import org.goj.common.entity.practice.ContestUser;
import org.goj.practice.mapper.ContestUserMapper;
import org.goj.practice.service.ContestUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author CK
 * @since 2021-04-20
 */
@Service
public class ContestUserServiceImpl extends ServiceImpl<ContestUserMapper, ContestUser> implements ContestUserService {

    @Resource
    private ContestUserMapper contestUserMapper;

    @Override
    public int addContestUser(Integer contestId, Integer userId) {
        return contestUserMapper.addContestUser(contestId, userId);
    }
}
